require 'piston/plugin/plugin_manager/model/plugin_data'
require 'piston/plugin/plugin_manager/view_model/plugin_data_list'
require 'piston/plugin/plugin_manager/command/show_plugin_manager'

module Piston
  class Plugin
    def view(xaml_builder)
      xaml_file = File.join(File.expand_path(File.dirname(__FILE__)), 'view/menu.xaml')
      xaml_builder.append('//xaml:MenuItem[@Header="_Tool"]', xaml_file)
    end

    def commands
      {"ShowPluginManager" => Piston::PluginManager::ShowPluginManager.new}
    end
  end
end



